package com.cooper.scraper.show;

import com.cooper.android.comm.Resource;

import android.content.Context;
import android.graphics.Bitmap;
import android.view.View;
import android.widget.ImageView;

public class SingleImgViewHolder<T extends Resource> extends FanartViewHolder<T> {
	
	public SingleImgViewHolder(Context context) {
		super(context);
	}

	protected ImageView view;


	@Override
	public void setFanart(Bitmap fanart) {
		view.setImageBitmap(fanart);
	}

	@Override
	public View getRootView() {
		return view;
	}

	@Override
	protected void createRootView(Context context) {
		view = new ImageView(context);
	}

	@Override
	public void clean() {
		view.setImageBitmap(null);
	}

}
